package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.HashMap;

public interface UserDao {
    /**
     * 根据用户名查询用户的基本信息
     * @param username
     * @return
     */
    User findByUsername(String username);

    Page<User> findAll(String queryString);

    void saveBasic(User user);

    void saveMiddle(HashMap<String, Integer> map);

    User selectUserById(int id);

    Integer[] selectMiddleById(int id);

    void updateUserBasic(User user);

    void deleteUserMiddle(Integer id);

    void deleteUserBasic(int id);
}
